package mysql

import "gorm.io/gorm"

type Brand struct {
	gorm.Model
	BrandName string `gorm:"type:varchar(50);not null;commit:品牌名称'"`
}

func (b *Brand) BrandAdd(db *gorm.DB) error {
	return db.Debug().Create(b).Error
}
